function getMoney(){
	//获取价格和数量
	var price=document.getElementById('price').value;
	var count=document.getElementById('count').value;
	
	var a=parseFloat(price);//转换成小数类型
	var b=parseInt(count);
	var zongjia=a*b;
	var zhekou=0;
	var zhekoulv='';
	if(count<5){
		hekou=0;
		zhekoulv='0';
	}else if(count>=5&&count<10){
		zhekou=zongjia*0.01;
		zhekoulv='1%';
	}else if(count>=10&&count<20){
		zhekou=zongjia*0.02;
		zhekoulv='2%';
	}else if(count>=20&&count<30){
		zhekou=zongjia*0.04;
		zhekoulv='4%';
	}else{
		zhekou=zongjia*0.06;
		zhekoulv='6%';
	}
	zhekou=Math.ceil(zhekou);//保留整数，向上取整
	
	document.getElementById('moneyMsg').
	innerHTML='折扣率为：'+zhekoulv+'折扣是'
	+zhekou+'元'+'总价格为'+zongjia+'实际应付'+(zongjia-zhekou);
}
